package com.example.cloud.dao.business.reservation;

import com.example.cloud.model.business.reservation.Patient;
import com.example.cloud.model.statistics.CreditItems;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/5/17.
 */
@Repository
public interface PatientRepository extends JpaRepository<Patient,Long> {
    int countByPhoneAndDeleteFlag(String phone, int deleteFlag);
    List<Patient> findAllByOrganIdInAndDeleteFlag(List<Long> ids, int deleteFlag);
    List<Patient> findByIdIn(List<Long> ids);
    Patient findByMedicalNumberAndDeleteFlag(String medicalNumber, int deleteFlag);
}
